package com.lfw.store1.utils;

import org.springframework.util.DigestUtils;

public class MD5 {
    public String getMD5Password(String password, String salt){
        for (int i = 0; i < 3; i++) {
            password = DigestUtils.md5DigestAsHex((salt + password + salt).getBytes()).toUpperCase();
        }
        return password;
    }
}
